using System;
using System.Collections;

namespace PMG.model
{
	#region TParaCity

	/// <summary>
	/// TParaCity object for NHibernate mapped table 'T_Para_City'.
	/// </summary>
	[Serializable]
	public class TParaCity
	{
		#region Member Variables
		
		protected int _id;
		protected string _city;
		protected string _province;
		protected string _tier;

		#endregion

		#region Constructors

		public TParaCity() { }

		public TParaCity( string city, string province, string tier )
		{
			this._city = city;
			this._province = province;
			this._tier = tier;
		}

		#endregion

		#region Public Properties

		public int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public string City
		{
			get { return _city; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for City", value, value.ToString());
				_city = value;
			}
		}

		public string Province
		{
			get { return _province; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Province", value, value.ToString());
				_province = value;
			}
		}

		public string Tier
		{
			get { return _tier; }
			set
			{
				if ( value != null && value.Length > 20)
					throw new ArgumentOutOfRangeException("Invalid value for Tier", value, value.ToString());
				_tier = value;
			}
		}

		

		#endregion
	}
	#endregion
}